/* 配置参数 */
import Vue from "vue";
class Config {
  constructor() {}
}

// 判断是否是生产环境
Config.baseUrl =
  process.env.NODE_ENV === "production" ?
  "" :
  "";
Config.production = process.env.NODE_ENV === "production" ? true : false;
Config.ossUrl = "";

Config.tableName = ""; //本地存储表名
Config.interceptor = true; //是否开启未登入拦截
Config.request = {
  // token字段名
  tokenName: "token",
  formData: "data"
};

Config[Config.request.tokenName] = ""; //token值
Config.response = {
  statusName: "Code", //数据状态的字段名称
  statusCode: {
    ok: 0, //数据状态一切正常的状态码
    logout: 403 //登录状态失效的状态码
  },
  msgName: "Message", //状态信息的字段名称
  dataName: "Response" //数据详情的字段名称
};
Config.logoutUrl = ""; //退出登录网址
Config.Loading = Vue.prototype.$loading;

export default Config;